package com.fastCms.business.frame.constant.iotApi;

import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Create by qianxia.zgm  下午5:26 2021/4/8
 */
public class IotApiConst {

    public static final Long STATE = 1L;

    public static final String SYSTEM = "system";

    public static final String TSP_DOMAIN = "http://www.0531yun.cn";

    public static final String TSP_LOGIN = TSP_DOMAIN + "/app/Login";

    public static final String TSP_USER_DEVICE_GROUP = TSP_DOMAIN + "/app/GetUserDeviceGroups";

    public static final String TSP_USER_DEVICE_DATA = TSP_DOMAIN + "/app/GetDeviceData";

    public static final String TSP_USER_DEVICE_DATA2 = TSP_DOMAIN + "/device/userdevices";


    public static final String TSP_RELAYS = "/app/GetRelays";

    // 云平台接口
    public static final String YUN_LOGIN = "http://www.xhhbyun.cn/doLogin";


    public static final String YUN_DATA = "http://www.xhhbyun.cn/envdata/last";

    /**
     * 设备列表接口
     */
    public static final String YUN_DEVICE_LIST = "http://xhhbyun.cn/device/userdevice/?page=1&size=30&userId=3";

    public static final List<String> YUN_DEVICE = new ArrayList<String>() {
        {

            this.add("49780407");
            this.add("49779391");
            this.add("49780043");
            this.add("49780324");
            this.add("49764286");
            this.add("49780712");
            this.add("49780092");
            this.add("49780415");
            this.add("49760623");
        }
    };

    public static final Integer SUCCESS = 1000;

    public static final Integer ERROR = 9999;


    public static final List<String> DCS_DEVICE = new ArrayList<String>() {
        {
            this.add("通道 1.烧结2.SJK1HCPPDQTXH");
            this.add("通道 1.烧结2.SJK2#BY1#PDQTXH");
            this.add("通道 1.烧结2.SJK2#BY2#PDQTXH");
            this.add("通道 1.烧结2.SJK2#CPPDQTXH");
        }
    };


    public static final Map<String,String> DCS_CHART = new HashMap<String, String>() {
        {
            this.put("通道 1.高炉3.GLCTCWBH1#","测温变化");
            this.put("通道 1.高炉3.GLRFLLFLL","冷风流量");
            this.put("通道 1.烧结2.SJJTCJS","台车机速");
            this.put("通道 1.烧结除尘.SJJZCFJFM","风机风门");
            this.put("通道 1.烧结除尘.SJJZCFJRKWD","入口温度");
            this.put("通道 1.石灰窑.BHYSHSBHYMQLL","煤气流量");
        }
    };


    //    cems list
    public static final List<CemsVO> CEMS_DEVICE1 = new ArrayList<CemsVO>() {
        {
            this.add(new CemsVO("CEMS1","SO","Device0:400017"));
            this.add(new CemsVO("CEMS1","NO","Device0:400019"));
            this.add(new CemsVO("CEMS1","颗粒物","Device0:400013"));
            this.add(new CemsVO("CEMS1","烟气流量","Device0:400003"));
            this.add(new CemsVO("CEMS1","氧气","Device0:400001"));
            this.add(new CemsVO("CEMS1","温度","Device0:400005"));
            this.add(new CemsVO("CEMS1","湿度","Device0:400009"));
            this.add(new CemsVO("CEMS1","压力","Device0:400011"));
        }
    };
    public static final List<CemsVO> CEMS_DEVICE2 = new ArrayList<CemsVO>() {
        {
            this.add(new CemsVO("CEMS2","SO","Device0:400017"));
            this.add(new CemsVO("CEMS2","NO","Device0:400019"));
            this.add(new CemsVO("CEMS2","颗粒物","Device3:400011"));
            this.add(new CemsVO("CEMS2","烟气流量","Device3:400013"));
            this.add(new CemsVO("CEMS2","氧气","Device0:400001"));
            this.add(new CemsVO("CEMS2","温度","Device3:400003"));
            this.add(new CemsVO("CEMS2","湿度","Device3:400007"));
            this.add(new CemsVO("CEMS2","压力","Device3:400009"));
        }
    };
    public static final List<CemsVO> CEMS_DEVICE3 = new ArrayList<CemsVO>() {
        {
            this.add(new CemsVO("CEMS3","SO","Device0:400017"));
            this.add(new CemsVO("CEMS3","NO","Device0:400019"));
            this.add(new CemsVO("CEMS3","颗粒物","Device4:400011"));
            this.add(new CemsVO("CEMS3","烟气流量","Device4:400013"));
            this.add(new CemsVO("CEMS3","氧气","Device0:400001"));
            this.add(new CemsVO("CEMS3","温度","Device4:400004"));
            this.add(new CemsVO("CEMS3","湿度","Device4:400007"));
            this.add(new CemsVO("CEMS3","压力","Device4:400009"));
        }
    };
    public static final List<CemsVO> CEMS_DEVICE4 = new ArrayList<CemsVO>() {
        {
            this.add(new CemsVO("CEMS4","SO","Device0:400017"));
            this.add(new CemsVO("CEMS4","NO","Device0:400019"));
            this.add(new CemsVO("CEMS4","颗粒物","Device5:400011"));
            this.add(new CemsVO("CEMS4","烟气流量","Device0:400013"));
            this.add(new CemsVO("CEMS4","氧气","Device0:400001"));
            this.add(new CemsVO("CEMS4","温度","Device5:400004"));
            this.add(new CemsVO("CEMS4","湿度","Device5:400007"));
            this.add(new CemsVO("CEMS4","压力","Device5:400009"));
        }
    };
    public static final List<CemsVO> CEMS_DEVICE5 = new ArrayList<CemsVO>() {
        {
            this.add(new CemsVO("CEMS5","SO","Device0:400017"));
            this.add(new CemsVO("CEMS5","NO","Device0:400019"));
            this.add(new CemsVO("CEMS5","颗粒物","Device0:400013"));
            this.add(new CemsVO("CEMS5","烟气流量","Device0:400003"));
            this.add(new CemsVO("CEMS5","氧气","Device0:400001"));
            this.add(new CemsVO("CEMS5","温度","Device0:400005"));
            this.add(new CemsVO("CEMS5","湿度","Device0:400009"));
            this.add(new CemsVO("CEMS5","压力","Device0:400011"));
        }
    };
    public static final List<CemsVO> CEMS_DEVICE6 = new ArrayList<CemsVO>() {
        {
            this.add(new CemsVO("CEMS6","SO","Device0:400017"));
            this.add(new CemsVO("CEMS6","NO","Device0:400019"));
            this.add(new CemsVO("CEMS6","颗粒物","Device0:400013"));
            this.add(new CemsVO("CEMS6","烟气流量","Device0:400003"));
            this.add(new CemsVO("CEMS6","氧气","Device0:400001"));
            this.add(new CemsVO("CEMS6","温度","Device0:400005"));
            this.add(new CemsVO("CEMS6","湿度","Device0:400009"));
            this.add(new CemsVO("CEMS6","压力","Device0:400011"));
        }
    };

    public static final Map<String,List<CemsVO>> Cems_DEVICE = new HashMap<String,List<CemsVO>>() {
        {
            this.put("CEMS(烧结机头脱硫脱硝)",CEMS_DEVICE1);
            this.put("CEMS(烧结机尾除尘)",CEMS_DEVICE2);
            this.put("CEMS(高炉矿槽除尘)",CEMS_DEVICE3);
            this.put("CEMS(高炉出铁场除尘)",CEMS_DEVICE4);
            this.put("CEMS(石灰窑脱硫脱硝)",CEMS_DEVICE5);
            this.put("CEMS(电厂脱硫脱硝)",CEMS_DEVICE6);
        }
    };

    @Data
    public static class CemsVO{
        private String name;
        private String type;
        private String prodId;

        public CemsVO() {
        }

        public CemsVO(String name, String type, String prodId) {
            this.name = name;
            this.type = type;
            this.prodId = prodId;
        }
    }


}
